package com.reading_recognition_system.service.impl;

import com.reading_recognition_system.mapper.TestMapper;
import com.reading_recognition_system.pojo.Test;
import com.reading_recognition_system.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class TestServiceImpl implements TestService {
    @Autowired
    private TestMapper testMapper;
    public Test getById(int id) {
        return  testMapper.getById(id);
    }
    public List<Test> getAll(){
        return testMapper.getAll();
    }
}
